package com.uni.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Author:      Unirithe/Mr.Chao
 * CSDN:        https://blog.csdn.net/Unirithe
 * CreatedTime:  2022/2/10 9:45
 **/
@Controller
public class ErrorPageController {

    @GetMapping("/error")
    @ResponseBody
    public String notFount(){
        return "错误页面!";
    }
    @GetMapping("/error/noauth")
    @ResponseBody
    public String notFoundAuth(){
        return "没权限访问!";
    }
}
